package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.PurchaseReceipt;
import com.pureut.storage.dto.*;
import com.pureut.storage.vo.PurchaseReceiptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/12/23 10:16
 * @DESC
 */
@Mapper
public interface PurchaseReceiptMapper extends BaseMapper<PurchaseReceipt> {

    /**
     * 获取列表
     */
    List<PurchaseReceiptDto> getReceiptList(PurchaseReceiptVo purchaseReceiptVo);

    /**
     * 根据id获取详情
     */
    PurchaseReceiptDto getReceiptViewById(long id);

    /**
     * 获取列表（手持pda）
     */
    List<AndroidPdaDto> getReceiptAndroidList(Long deptId);

    /**
     * 根据id获取详情（手持pda）
     */
    AndroidPdaViewDto getReceiptViewAndroidById(long id);

    /**
     * 查询供应商编码
     * @param wsiConnectNum
     * @return
     */
    PrintDto getReceiptInfo(String wsiConnectNum);

    /**
     * 通过多个id获取数据
     */
    List<PurchaseReceiptExportDto> getDataByIdStr(@Param("idList") List<String> idList);

    /**
     * 获取列表(导出查询)
     */
    List<PurchaseReceiptExportDto> getReceiptListOut(PurchaseReceiptVo purchaseReceiptVo);
}
